package com.calm.cthreadpool;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * Create by Calm
 * on 2019/8/13
 */
public class CThreadPool extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }
    private void createThreadPool(){
        ThreadPoolExecutor executor = new ThreadPoolExecutor(1,5,10, TimeUnit.SECONDS,new LinkedBlockingQueue<Runnable>());
    }
}
